<template>
  <div class="dishes-container">
    <!-- 查询部分 -->
    <DishSales :getDataList="newList" :newCount="count"></DishSales>
    <!-- 明细数据部分 -->
    <DishDetaildata @getDishList="getNewMethod(arguments)"></DishDetaildata>
  </div>
</template>

<script>
//导入需要的组件
import DishSales from '../../components/zcs/Dishsales/DishSales.vue'
import DishDetaildata from '../../components/zcs/Dishsales/DishDetaildata.vue'

export default {
  data() {
    return {
      newList: [],
      count: 0
    }
  },

  methods: {
    getNewMethod(val) {
      this.newList = val[0]
      this.count = val[1]
      // console.log(this.newList, this.count)
    }
  },
  components: {
    DishSales,
    DishDetaildata
  }
}
</script>

<style lang="less" scoped></style>
